<template>
	<view class="container">
		<image class="bg"
			src="https://img2.baidu.com/it/u=1737067577,8701429&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889"
			mode="aspectFill"></image>
		<view class="main">
			<view class="pm">
				<view class="tr" v-for="i in 3">
					<view class="td">拉布拉多</view>
					<view class="td">
						<image
							src="https://img1.baidu.com/it/u=3216188644,3898639098&fm=253&fmt=auto&app=120&f=JPEG?w=801&h=800"
							mode="aspectFill"></image>
					</view>
					<view class="td">30%</view>
					<view class="td" @click="toDetail">伤人案例</view>
				</view>
				<view class="message">这个列表显示匹配的前3</view>
			</view>
			<view class="jlgg">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onShow() {

		},
		onLoad(option) {

		},
		methods: {
			toDetail(){
				uni.navigateTo({
					url:'/pages/detail/index'
				})
			},
		},
	};
</script>

<style lang="scss" scoped>
	.container {
		background-color: #ffffff;
		height: 100%;
		padding-top: var(--status-bar-height);
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;

		.bg {
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
		}

		.main {
			position: relative;
			max-height: 100%;
			overflow: auto;

			.pm {
				width: 700rpx;
				height: 450rpx;
				background: #FFF;
				border: 2rpx solid #000;
				margin: 0 auto;
				padding-top: 30rpx;
				box-sizing: border-box;

				.message {
					text-align: center;
					font-size: 28rpx;
					margin-top: 50rpx;
				}

				.tr {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-bottom: 20rpx;

					.td {
						padding: 0 10rpx;

						image {
							width: 80rpx;
							height: 80rpx;
						}

						&:nth-of-type(1) {
							flex: 1;
						}

						&:nth-of-type(2) {
							width: 100rpx;
						}

						&:nth-of-type(3) {
							width: 100rpx;
						}

						&:nth-of-type(4) {
							width: 200rpx;
						}
					}
				}
			}

			.jlgg {
				width: 600rpx;
				height: 400rpx;
				background: #FFF;
				border: 2rpx solid #000;
				margin: 0 auto;
				margin-top: 50rpx;
			}
		}
	}
</style>